<?php
echo $this->Form->hidden('user_id', array('value' => $this->Session->read('Auth.User.id')));
echo $this->Form->hidden('shop_id', array('value' => $this->Session->read('Auth.User.shop_id')));
echo $this->Form->hidden('date', array('label' => 'Fecha de Venta'));
?>

<h2><?php echo __('Promociones'); ?></h2>

<table cellpadding="0" cellspacing="0" id="editableTable">
    <tr>
        <th><?php echo 'Promocion'; ?></th>
        <th><?php echo 'Precio'; ?></th>
        <th><?php echo 'Opcion'; ?></th>
    </tr>
    <?php foreach ($promotions as $promotion): ?>
        <tr>
            <td> <?php echo $promotion['Promotion']['name'] ?> </td>
            <td> <?php echo $promotion['Promotion']['sale_price'] ?> </td>
            <td> <?php echo 'Agregar' ?> </td>
        </tr>
    <?php endforeach; ?>
</table>

<?php
//echo $this->Form->input('ticket_number', array('label' => 'Nro de Ticket', 'value' => rand(1, 150)));
//echo $this->Form->input('description', array('label' => 'Descripcion'));
//echo $this->Form->input('total', array('label' => 'Total'));
?>